package cn.wcy.design_patterns.test.Controller.demo1;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description:
 *
 * @author wcy
 * @version 1.0
 * @date 2024/6/15 下午2:41
 */
@RestController
public class DemoController {

    @GetMapping("/demo1")
    public void demo1(@RequestParam String name)
    {
        AbstractHandler invokeStrategy = Factory.getInvokeStrategy(name);
        System.out.println(invokeStrategy.BBB());
    }


}
